package com.websocket.vo;

import java.util.Date;
import java.util.List;

import com.google.gson.Gson;

public class Message {
	private String welcome;
	private List<String> username;
	private String content;
	public String getWelcome() {
		return welcome;
	}
	public void setWelcome(String welcome) {
		this.welcome = welcome;
	}
	
	public List<String> getUsername() {
		return username;
	}
	public void setUsername(List<String> username) {
		this.username = username;
	}
	public Message() {
		// TODO Auto-generated constructor stub
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public void setContent(String name,String msg) {
		this.content = name + " " + new Date().toLocaleString() + ":<br/>" + msg + ":<br/>";
	}
	
	public String toJson(){
		return gson.toJson(this);
	}
	
	private static Gson gson=new Gson();
}
